/* jshint indent: 2 */

module.exports = function (sequelize, DataTypes) {
    let monitorConf = sequelize.define('monitor_conf', {
        monitor_id: {
            type: DataTypes.INTEGER(11),
            allowNull: false,
            primaryKey: true,
            autoIncrement: true
        },
        monitor_desc: {
            type: DataTypes.STRING(500),
            allowNull: true
        },
        station_list: {
            type: DataTypes.STRING(500),
            allowNull: true
        },
        check_cron: {
            type: DataTypes.STRING(100),
            allowNull: true
        },
        model_id: {
            type: DataTypes.INTEGER(11),
            allowNull: true
        },
        is_valid: {
            type: DataTypes.INTEGER(1),
            allowNull: true
        },
        creator: {
            type: DataTypes.STRING,
            allowNull: true
        },
        creat_time: {
            type: DataTypes.DATE,
            allowNull: true
        },
        updator: {
            type: DataTypes.STRING,
            allowNull: true
        },
        update_time: {
            type: DataTypes.DATE,
            allowNull: true
        },
    }, {
        tableName: 'monitor_conf',
        timestamps: false
    });
    return monitorConf;
};
